package win.doyto.service.data.config;

import win.doyto.query.service.CrudService;

import java.util.List;

/**
 * ReportConfigMapper
 *
 * @author f0rb on 2018-03-01.
 */
public interface ReportConfigApi extends CrudService<ReportConfigEntity, Integer, ReportConfigQuery> {
    default List<ReportConfigEntity> findByReportKey(String reportKey) {
        return query(ReportConfigQuery.builder().reportKey(reportKey).build());
    }
}
